package com.wk1un2.service;

import java.util.List;
import java.util.Map;

public interface RolesService {
	// 查询所有角色信息
	public List<Map<String, Object>> getAllRoles(Map<String, Object> map);

	// 分页查询
	public Integer count(Map<String, Object> map);

	// 添加角色
	public Integer add(Map<String, Object> map);

	// 修改角色
	public Integer update(Map<String, Object> map);

	// 刪除角色
	public Integer delete(Integer id);
	
	// 穿梭框
			public 	List<Map<String, Object>> getAllBoxMenus(Map<String, Object> map);//获取全部角色

			public	List<Map<String, Object>> getAllBoxRoleMenus(Map<String, Object> map);//获取已有角色

			public	Integer addBoxMenus(Map<String, Object> map);

			public	Integer deleteBoxMenus(Integer roleid,Integer menuid);

			
			//
			public List<Map<String, Object>> getModules(Integer roleid);
			public Integer insertRoleModule(Map<String, Object> map);
			public Integer deleteRoleModule(Map<String, Object> map);
			
			
			

			// 查询角色名称是否重复
			Integer getRolesName(String rolename);
			
			//角色关联用户不能删除
			Integer getRolesUser(Integer roleid);
			
			
			
			
			
			
}
